/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {AppRegistry,AsyncStorage} from 'react-native';
PilotApp = require('./bin/app.js');
AppRegistry.registerComponent('PilotApp', () => PilotApp);

//读取缓存后，加载程序
// AsyncStorage.getItem('appData').then(function(result){
//   if(result)
//     data = JSON.parse(result);
//     global.appData = data;
//   PilotApp = require('./bin/app.js');
//   AppRegistry.registerComponent('PilotApp', () => PilotApp);
// });
